#! /bin/bash
problem=$1
cd metrics/
./metrics_zdt.m plot $problem ../results/$problem/parallel/*.data > /dev/null
./metrics_zdt.m plot $problem ../results/$problem/serial/*.data > /dev/null
printf "[done]\n"

printf "metrics... \n"
./metrics_zdt.m stat $problem ../results/$problem/parallel/*.data > ../results/$problem/parallel/summary
./metrics_zdt.m stat $problem ../results/$problem/serial/*.data > ../results/$problem/serial/summary
cd ..

printf "[done]"
